Added stdin reading capability to amqpsend #4
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I added the option to leave out the filename and the command line message and instead read the message body from standard input.
I performed regression testing to make sure the previous options still behaved generally as expected. The primary difference is where the help message was printed if the filename option and command-line message argument were missing.
Additional testing included sending of large files (20M) to test buffer reallocations. I did not do any performance analysis using the read buffer of only 8K.
Feel free to not accept these changes as you see fit. I made them for my own use and wish to give you the option to make them generally available in your project if you deem it desirable to do so.
Thank you.